$(function() {
	doSearch();
});

function doSearch() {
	var province = $('#province').combobox('getValue');
	var startTime = $('#startTime').datetimebox('getValue');
	var endTime = $('#endTime').datetimebox('getValue');
	
	var xAxis = [];
	var music = [];
	var read = [];
	var lingxi = [];
	$.ajax({
		url : '/migu/miguUserMonitorNew',
		data : {
			startTime : startTime,
			endTime : endTime,
			province : province
		},
		type : "POST",
		datatype : "json",
		async : true,
		success : function(data) {
			var xAxis = data.xAxis;
			var yAxis = eval(data.yAxis);
			$.each(yAxis, function(index, mod) {
				music.push(mod.music);
				read.push(mod.read);
				lingxi.push(mod.lingxi);
			});
			issueHandler.showHighChart(xAxis, music, read, lingxi);
		}
	});
}
